package cn.com.homeyoda.aimate.aihealth.ui.health;

import android.os.Build;
import android.os.Bundle;
import android.view.View;

import androidx.annotation.RequiresApi;
import androidx.databinding.library.baseAdapters.BR;
import androidx.lifecycle.ViewModelProviders;

import cn.com.homeyoda.aimate.aihealth.R;
import cn.com.homeyoda.aimate.aihealth.app.AppViewModelFactory;
import cn.com.homeyoda.aimate.aihealth.base.BaseActivity;
import cn.com.homeyoda.aimate.aihealth.databinding.ActivityChronicDiseaseInfoBinding;
import cn.com.homeyoda.aimate.aihealth.ui.health.viewModel.HealthModel;

//完善信息
public class ChronicDiseaseInfoActivity extends BaseActivity<ActivityChronicDiseaseInfoBinding, HealthModel>{


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

    }

    @Override
    public HealthModel initViewModel() {
        AppViewModelFactory factory = AppViewModelFactory.getInstance(getApplication());
        return ViewModelProviders.of(this, factory).get(HealthModel.class);
    }

    @Override
    public void initData() {
        super.initData();

        initView();
    }

    private void initView() {


        binding.back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });





    }







    @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
    @Override
    protected void onDestroy() {
        super.onDestroy();

    }



    @Override
    public void initViewObservable() {
        super.initViewObservable();

    }

    @Override
    public int initContentView(Bundle savedInstanceState) {
        return R.layout.activity_chronic_disease_info;
    }

    @Override
    public int initVariableId() {
        return BR.viewModel;
    }
}
